package service.impl;

import dao.CategoryDao;
import pojo.Category;
import service.CategoryService;

import java.util.List;

/**
 * 商品分类接口实现类
 * @author zjj
 */
public class CategoryServiceImpl implements CategoryService {
    CategoryDao categoryDao=new CategoryDao();

    /**
     * 查询所有商品分类
     * @return
     */
    @Override
    public List<Category> queryAllCategory() {
        List<Category> categorys = categoryDao.queryAllCategory();
        return categorys;
    }

}
